home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / LMouser 2.2 / LMouser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-30  |  1.5 KB  |  54 lines  |  [TEXT/CWIE]

  1. /*
  2.     LMouser is © 1996 Boxes Objects Links Design Pty Ltd.  All Rights Reserved. 
  3.     You use this software at your own risk, etc. Permission is given to Timothy C.
  4.     Delaney to use LMouser. Permission is given for all others to use LMouser if
  5.     acknowledgement of this copyright is given in publically-released software.
  6.     Acknowledgement should consist of a statement equivalent to "Sections of this
  7.     program are © Boxes Objects Links Design Pty Ltd", visible in an "About..." box
  8.     or splash screen.
  9.                                                                                         */
  10.  
  11. #ifndef    _H_LMOUSER
  12. #define    _H_LMOUSER
  13.  
  14. #if !__option(RTTI)
  15. #error LMouser requires RTTI to be enabled
  16. #endif
  17.  
  18. #include <LPane.h>
  19.  
  20. class LMouser
  21. {
  22.     public:
  23.  
  24.                             LMouser (void                                                );
  25.         virtual                ~LMouser (void                                                );
  26.  
  27.         virtual LMouser *    GetSuperMouser (void                                        );
  28.  
  29.         virtual LMouser *    FindDeepSubMouserContaining (Int32    inHorizPort,
  30.                                                          Int32    inVertPort,
  31.                                                          LPane    *startPane    = NULL        );
  32.  
  33.         virtual LMouser *    FindShallowSubMouserContaining (Int32    inHorizPort,
  34.                                                             Int32    inVertPort,
  35.                                                             LPane    *startPane    = NULL    );
  36.  
  37.         static LPane *        GetLastPane (void                                            );
  38.         static LPane *        GetCurrentPane (void                                        );
  39.  
  40.     protected:
  41.  
  42.         static LMouser        *sLastMouser;
  43.         static LPane        *sLastPane,
  44.                             *sCurrentPane;
  45.  
  46.         LMouser                *mSuperMouser;
  47.  
  48.         virtual LPane *        FindVisibleDeepSubPaneContaining (Int32    inHorizPort,
  49.                                                               Int32    inVertPort,
  50.                                                               LPane    *startPane    = NULL    );
  51. };
  52.  
  53. #endif
  54.